import request from '@/utils/request'

export default {
  rptModuleList(){
    return request({
      url:'/report-module/lists',
      method:'get'
    })
  },
  rptModuleInputs(params){
    return request({
      url:'/report-module/inputs',
      method:'get',
      params
    })
  },
  rptModuleStore(data){
    return request({
      url:'/report-module',
      method:'post',
      data
    })
  },
  rptModuleQuery(tableQuery,tablePage){
      const params = {
        page:!tablePage.current?1:tablePage.current,
        num:!tablePage.size?20:tablePage.size
      }
    return request({
      url:'/report-module',
      method:'get',
      params
    })
  },
  rptModuleCopy(data){
    return request({
      url:'/report-module/copy',
      method:'post',
      data
    })
  },
  rptFlowDetail(params){
    return request({
      url:'/flow/show',
      method:'get',
      params
    })
  },
  rptFlowStore(data){
    return request({
      url:'/flow/store',
      method:'post',
      data
    })
  },
  rptFlowDestroy(data){
    return request({
      url:'/flow/destroy',
      method:'delete',
      data
    })
  }
}
